package cn.thens.kdroid.core.log

data class PrettyStyle(val top: String, val divider: String, val middle: String, val bottom: String) {
    companion object {
        private const val SINGLE_PART = "────────────────────────────"
        private const val DASHED_PART = "┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄"
        private const val DOUBLE_PART = "════════════════════════════"
        private const val SINGLE_LINE = SINGLE_PART + SINGLE_PART + SINGLE_PART + SINGLE_PART
        private const val DASHED_LINE = DASHED_PART + DASHED_PART + DASHED_PART + DASHED_PART
        private const val DOUBLE_LINE = DOUBLE_PART + DOUBLE_PART + DOUBLE_PART + DOUBLE_PART

        private const val SINGLE_TOP = "┌$SINGLE_LINE"
        private const val SINGLE_DIV = "├$DASHED_LINE"
        private const val SINGLE_MID = "│ "
        private const val SINGLE_BOT = "└$SINGLE_LINE"

        private const val DOUBLE_TOP = "╔$DOUBLE_LINE"
        private const val DOUBLE_DIV = "╟$DASHED_LINE"
        private const val DOUBLE_MID = "║ "
        private const val DOUBLE_BOT = "╚$DOUBLE_LINE"

        val SINGLE = PrettyStyle(SINGLE_TOP, SINGLE_DIV, SINGLE_MID, SINGLE_BOT)
        val DOUBLE = PrettyStyle(DOUBLE_TOP, DOUBLE_DIV, DOUBLE_MID, DOUBLE_BOT)
        val NONE = PrettyStyle("", "", "", "")
    }
}